package com.huayun.dcsp.service1.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayun.dcsp.service1.dao.StudentDao;
import com.huayun.dcsp.service1.model.Student;

@Service
public class StudentService {
	
	@Autowired
	private StudentDao studentDao;
	
	
	public  List<Student> getAllStudents(){
		return studentDao.getAllStudent();
	};
	
	public Student getStudent(String id){
		return studentDao.getStudentById(id);
	}

}
